import React from 'react';
import styles from './index.less';
import { history } from 'umi';
import { Button } from 'antd';

export default props => {
  return (
    <div>
      <h1 className={styles.title}>我是首页</h1>
      <Button
        onClick={() => {
          history.push({ pathname: `/detail` });
        }}
      >
        跳转到详情页面
      </Button>
    </div>
  );
};
